package com.zlx.mapper;

import com.zlx.entities.Student;
import org.apache.ibatis.annotations.Insert;

/**
 * @Author 周罗校
 * @Description
 * @ClassName StudentMapper
 * @date 2020.10.09 11:49:13
 * 该版权归周罗校所有，最终解释权以官方为准
 */
public interface StudentMapperInterface {
    //添加学生
    @Insert("insert into student (stu_id,stu_name,stu_age) values (null,#{stuName},#{stuAge})")
    void addStudent(Student student);
    //根据id删除学生
    int deleteStudentById(Integer id);
    //根据id修改学生
    int updateStudentById(Student student);
    //根据id查用户
    Student findStudentById(Integer id);
}
